package com.aaa.smp.controller;

import com.aaa.smp.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * className:UserController
 * discription:
 * author:luRuiHua
 * createTime:2018-12-14 09:38
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    /**
     * 查询列表
     * @return
     */
    @ResponseBody
    @RequestMapping("/list")
    public Object list(){
        return userService.getList();
    }
}
